from expression import expression, environment


class functionDef(expression):
	def __init__(self, name, params, body):
		self.name = name
		self.params = params
		self.body = body
		self.env = environment("", expression())
		
	def evaluate(self, env):
		self.env = env
		self.body.evaluate(env)
		
	def getName(self):
		return self.name
		
	def getParams(self):
		return self.params
	
	def getBody(self):
		return self.body
	
	def getEnv(self):
		return self.env
